<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/include/jstl.jsp" %>
<div class="page unitBox" style="background-color:#E8F1FD;">
    <h2 class="contentTitle">用户异常规则明细</h2>
    <div class="pageFormContent" layouth="87" style="height: 133px;overflow: auto;">
        <table style="width:800px;">
            <tr style="height:30px">
                <td>规则编号：</td>
                <td>
                    <input class="textInput readonly" type="text" name="rule_code" value="${ETF.RULE_CODE}" readonly="true" />
                </td>
                <td>规则名称：</td>
                <td>
                    <input class="textInput readonly" type="text" name="rule_name" value="${ETF.RULE_NAME}" readonly="true" />
                </td>
                <td>规则类型：</td>
                <td>
                    <c:if test="${ETF.RULE_TYPE=='0'}">
                        <input class="textInput readonly" type="text" name="rule_type" value="用户" readonly="true" />
                    </c:if>
                    <c:if test="${ETF.RULE_TYPE=='1'}">
                        <input class="textInput readonly" type="text" name="rule_type" value="商户" readonly="true" />
                    </c:if>
                </td>
            </tr>
            <tr style="height:40px">
                <td>生效状态：</td>
                <td>
                    <c:if test="${ETF.IS_USE=='1'}">
                        <input class="textInput readonly" type="text" name="is_use" value="启用" readonly="true" /> 
                    </c:if>
                    <c:if test="${ETF.IS_USE !='1'}">
                        <input class="textInput readonly" type="text" name="is_use" value="未启用" readonly="true" /> 
                    </c:if>
                </td>
                <td>执行频率：</td>
                <td>
                    <c:if test="${ETF.EXEC_RATE == '1'}">
                        <input class="textInput readonly" type="text" name="is_use" value="天" readonly="true" /> 
                    </c:if>
                    <c:if test="${ETF.EXEC_RATE == '2'}">
                        <input class="textInput readonly" type="text" name="is_use" value="周" readonly="true" /> 
                    </c:if>
                    <c:if test="${ETF.EXEC_RATE == '3'}">
                        <input class="textInput readonly" type="text" name="is_use" value="月" readonly="true" /> 
                    </c:if>
                    <c:if test="${ETF.EXEC_RATE == '4'}">
                        <input class="textInput readonly" type="text" name="is_use" value="季度" readonly="true" /> 
                    </c:if>
                    <c:if test="${ETF.EXEC_RATE == '5'}">
                        <input class="textInput readonly" type="text" name="is_use" value="年" readonly="true" /> 
                    </c:if>
                </td>
                <td colspan="2"></td>
            </tr>
            <tr style="height:40px">
                <td>规则描述：</td>
                <td colspan="5">
                    <textarea name="RULE_DES" cols="89" rows="3" readonly="true">${ETF.RULE_DES}</textarea>
                </td>
            </tr>
            <% int ii=1;%>
            <c:forEach items="${ETF.REC}" var="GRP">
                <tr style="height:30px">
                    <td>阀值参数<%=ii++%>：</td>
                    <td>
                        <input class="textInput readonly" type="text" name="param_name" value="${GRP.PARAM_NAME}" readonly="true" />
                    </td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr style="height:30px">
                    <td>参数值：</td>
                    <td>
                        <c:if test="${GRP.PARAM_TYPE == '元'}">
                            <input class="textInput readonly" type="text" name="param_value" value="<fmt:formatNumber type='currency' value='${GRP.PARAM_VALUE/100}' pattern='0.00'/>" readonly="true" />  
                        </c:if> 
                        <c:if test="${GRP.PARAM_TYPE != '元'}">
                            <input class="textInput readonly" type="text" name="param_value" value="${GRP.PARAM_VALUE}" readonly="true" />  
                        </c:if>
                    </td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr style="height:30px">
                    <td>参数类型：</td>
                    <td>
                        <input class="textInput readonly" type="text" name="param_type" value="${GRP.PARAM_TYPE}" readonly="true" />
                    </td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                </tr>
            </c:forEach>
        </table>
    </div>
    <div class="formBar" >
        <ul>
            <li><div class="buttonActive"><div class="buttonContent"><button type="button" class="close" >返回</button></div></div></li>
        </ul>
    </div>
</div>